<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>管理平台</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="../../css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="../../css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="../../css/animate.min.css" rel="stylesheet">
    <link href="../../css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="../../css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
    <link href="http://cdn.bootcss.com/bootstrap-table/1.9.1/bootstrap-table.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../../plugins/layui/css/layui.css">
    <base target="_blank">
</head>
<body>
<div class="ibox-content">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox-content">
                    <div class="form-inline" style="margin-bottom: 10px; text-align: right;">
                        <input class="form-control" id="search" name="name" type="text" placeholder="请输入角色名"/>
                        <span class="glyphicon glyphicon-search"
                              style="position: relative;left: -25px;top: 4px;cursor: pointer;"></span>
                        <button type="button" id="btn_add" class="btn btn-primary" style="margin-bottom: 0px;">
                            <i class="fa fa-plus"></i>添加
                        </button>
                    </div>
                    <table id="table"></table>
                </div>
            </div>
        </div>
    </div>


    <!-- 模态框（Modal-->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title" id="myModalLabel">添加</h4>
                </div>
                <div class="modal-body">
                    <div>
                        <form class="form-horizontal" role="form">
                            <input type="hidden" name="id" value="0"/>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">角色名称</label>
                                <div class="col-sm-9">
                                    <input type="text" name="name" class="form-control" placeholder="角色名称">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">权限配置</label>
                                <div class="col-sm-9" id="resource-area">
                                    <!--js填充 菜单内容-->
                                </div>
                                <div class="col-sm-9 col-sm-offset-2 error" id="resourceError"></div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" id="submit-btn" class="btn btn-primary">确认</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>


</div>

<script src="../../js/jquery.min.js?v=2.1.4"></script>
<script src="../../js/bootstrap.min.js?v=3.3.5"></script>
<script src="../../js/plugins/bootstrap-table/bootstrap-table.js"></script>
<script src="../../js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="../../js/plugins/validate/jquery.validate.min.js"></script>
<script type="text/javascript" src="../../js/plugins/validate/messages_zh.min.js"></script>
<script src="../../js/plugins/form/3.51.0/jquery.form.min.js"></script>
<script src="../../js/plugins/layer/layer.min.js"></script>

<script src="../../plugins/layui/layui.js"></script>
<script>
    layui.config({
        base: '../../scripts/common/', //你的模块目录
        version : parent.layui.cache.version
    }).use('../app/admin/role'); //加载入口
</script>
</body>

</html>